package com.passionfruit.module.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author weirdor
 * @since 2017-11-06
 */
@TableName("blog_article_cate")
public class BlogArticleCate extends Model<BlogArticleCate> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 分类名称
     */
	@TableField("cate_title")
	private String cateTitle;
    /**
     * 分类标识
     */
	@TableField("cate_name")
	private String cateName;
    /**
     * 上级分类
     */
	@TableField("cate_pid")
	private Integer catePid;
    /**
     * 分类介绍
     */
	@TableField("cate_info")
	private String cateInfo;
    /**
     * 分类排序
     */
	@TableField("cate_sort")
	private Integer cateSort;
    /**
     * 分类状态
     */
	@TableField("cate_status")
	private Integer cateStatus;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Integer createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Integer updateTime;

	/**
	 * 父菜单名称
	 */
	@TableField(exist=false)
	private String parentName;

	/**
	 * ztree属性
	 */
	@TableField(exist=false)
	private Boolean open;

	/**
	 * 菜单名称
	 */
	@TableField(exist=false)
	private String name;

	public Boolean getOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCateTitle() {
		return cateTitle;
	}

	public void setCateTitle(String cateTitle) {
		this.cateTitle = cateTitle;
	}

	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}

	public Integer getCatePid() {
		return catePid;
	}

	public void setCatePid(Integer catePid) {
		this.catePid = catePid;
	}

	public String getCateInfo() {
		return cateInfo;
	}

	public void setCateInfo(String cateInfo) {
		this.cateInfo = cateInfo;
	}

	public Integer getCateSort() {
		return cateSort;
	}

	public void setCateSort(Integer cateSort) {
		this.cateSort = cateSort;
	}

	public Integer getCateStatus() {
		return cateStatus;
	}

	public void setCateStatus(Integer cateStatus) {
		this.cateStatus = cateStatus;
	}

	public Integer getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}

	public Integer getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Integer updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "BlogArticleCate{" +
			"id=" + id +
			", cateTitle=" + cateTitle +
			", cateName=" + cateName +
			", catePid=" + catePid +
			", cateInfo=" + cateInfo +
			", cateSort=" + cateSort +
			", cateStatus=" + cateStatus +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
